package cn.com.xinjinfu.pdoulcProduct.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 转让详情
 * Created by android-adt on 2016/1/29.
 */
public class TransferProductInfoBean implements Serializable {

    private List<String> audititems;
    private int code;
    private int havCoupons;
    private int transferLimit;
    private int lockTranfer;
    private int isTranfer;
    private String lockTimeBefore;
    private String lockTimeAfter;
    private int overdue;
    private int transferParticulars;
    private Debt debt;
    private Invest invest;
    private boolean isInvestUser;
    private Jsonprepayment jsonprepayment;
    private List<InvestBills> investBills;

    public int getIsTranfer() {
        return isTranfer;
    }

    public void setIsTranfer(int isTranfer) {
        this.isTranfer = isTranfer;
    }

    public int getLockTranfer() {
        return lockTranfer;
    }

    public void setLockTranfer(int lockTranfer) {
        this.lockTranfer = lockTranfer;
    }

    public String getLockTimeBefore() {
        return lockTimeBefore;
    }

    public void setLockTimeBefore(String lockTimeBefore) {
        this.lockTimeBefore = lockTimeBefore;
    }

    public String getLockTimeAfter() {
        return lockTimeAfter;
    }

    public void setLockTimeAfter(String lockTimeAfter) {
        this.lockTimeAfter = lockTimeAfter;
    }

    public int getTransferParticulars() {
        return transferParticulars;
    }

    public void setTransferParticulars(int transferParticulars) {
        this.transferParticulars = transferParticulars;
    }

    public int getHavCoupons() {
        return havCoupons;
    }

    public void setHavCoupons(int havCoupons) {
        this.havCoupons = havCoupons;
    }

    public int getTransferLimit() {
        return transferLimit;
    }

    public void setTransferLimit(int transferLimit) {
        this.transferLimit = transferLimit;
    }

    public int getOverdue() {
        return overdue;
    }

    public void setOverdue(int overdue) {
        this.overdue = overdue;
    }

    public Jsonprepayment getJsonprepayment() {
        return jsonprepayment;
    }

    public void setJsonprepayment(Jsonprepayment jsonprepayment) {
        this.jsonprepayment = jsonprepayment;
    }

    public List<InvestBills> getInvestBills() {
        return investBills;
    }

    public void setInvestBills(List<InvestBills> investBills) {
        this.investBills = investBills;
    }

    public List<String> getAudititems() {
        return audititems;
    }

    public void setAudititems(List<String> audititems) {
        this.audititems = audititems;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Debt getDebt() {
        return debt;
    }

    public void setDebt(Debt debt) {
        this.debt = debt;
    }

    public Invest getInvest() {
        return invest;
    }

    public void setInvest(Invest invest) {
        this.invest = invest;
    }

    public boolean isInvestUser() {
        return isInvestUser;
    }

    public void setIsInvestUser(boolean isInvestUser) {
        this.isInvestUser = isInvestUser;
    }

    @Override
    public String toString() {
        return "TransferProductInfoBean{" +
                "audititems=" + audititems +
                ", code=" + code +
                ", debt=" + debt +
                ", invest=" + invest +
                ", isInvestUser=" + isInvestUser +
                ", jsonprepayment=" + jsonprepayment +
                ", investBills=" + investBills +
                '}';
    }

    public static class Jsonprepayment {
        private double defaultinterest;
        private int prepaymentstatus;
        private int year;
        private int month;
        private int day;
        private double sunmoney;

        public double getDefaultinterest() {
            return defaultinterest;
        }

        public void setDefaultinterest(double defaultinterest) {
            this.defaultinterest = defaultinterest;
        }

        public int getPrepaymentstatus() {
            return prepaymentstatus;
        }

        public void setPrepaymentstatus(int prepaymentstatus) {
            this.prepaymentstatus = prepaymentstatus;
        }

        public int getYear() {
            return year;
        }

        public void setYear(int year) {
            this.year = year;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }

        public double getSunmoney() {
            return sunmoney;
        }

        public void setSunmoney(double sunmoney) {
            this.sunmoney = sunmoney;
        }

        @Override
        public String toString() {
            return "Jsonprepayment{" +
                    "defaultinterest=" + defaultinterest +
                    ", prepaymentstatus=" + prepaymentstatus +
                    ", year=" + year +
                    ", month=" + month +
                    ", day=" + day +
                    ", sunmoney=" + sunmoney +
                    '}';
        }
    }
    public static class Debt{
        private Invest invest;
        private double takeTransApr;
        private double transferPrice;
        private double portionTransferAmount;

        private double debtAmount;
        private double portionOriginalAmount;
        private int totalPortionNums;
        private int haveBuyPortionnums;
        private int remainTerm;
        private int status;
        private long endSecond;
        private long id;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public double getPortionTransferAmount() {
            return portionTransferAmount;
        }

        public void setPortionTransferAmount(double portionTransferAmount) {
            this.portionTransferAmount = portionTransferAmount;
        }

        public int getTotalPortionNums() {
            return totalPortionNums;
        }

        public void setTotalPortionNums(int totalPortionNums) {
            this.totalPortionNums = totalPortionNums;
        }

        public int getHaveBuyPortionnums() {
            return haveBuyPortionnums;
        }

        public void setHaveBuyPortionnums(int haveBuyPortionnums) {
            this.haveBuyPortionnums = haveBuyPortionnums;
        }

        public double getPortionOriginalAmount() {
            return portionOriginalAmount;
        }

        public void setPortionOriginalAmount(double portionOriginalAmount) {
            this.portionOriginalAmount = portionOriginalAmount;
        }

        public Invest getInvest() {
            return invest;
        }

        public void setInvest(Invest invest) {
            this.invest = invest;
        }

        public double getTakeTransApr() {
            return takeTransApr;
        }

        public void setTakeTransApr(double takeTransApr) {
            this.takeTransApr = takeTransApr;
        }

        public double getTransferPrice() {
            return transferPrice;
        }

        public void setTransferPrice(double transferPrice) {
            this.transferPrice = transferPrice;
        }

        public double getDebtAmount() {
            return debtAmount;
        }

        public void setDebtAmount(double debtAmount) {
            this.debtAmount = debtAmount;
        }

        public int getRemainTerm() {
            return remainTerm;
        }

        public void setRemainTerm(int remainTerm) {
            this.remainTerm = remainTerm;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public long getEndSecond() {
            return endSecond;
        }

        public void setEndSecond(long endSecond) {
            this.endSecond = endSecond;
        }

        @Override
        public String toString() {
            return "Debt{" +
                    "invest=" + invest +
                    ", takeTransApr=" + takeTransApr +
                    ", transferPrice=" + transferPrice +
                    ", debtAmount=" + debtAmount +
                    ", remainTerm=" + remainTerm +
                    ", status=" + status +
                    ", endSecond=" + endSecond +
                    ", id=" + id +
                    '}';
        }

        public static class Invest{
            private Bid bid;
            private User user;
            private int transferStatus;

            public Bid getBid() {
                return bid;
            }

            public void setBid(Bid bid) {
                this.bid = bid;
            }

            public User getUser() {
                return user;
            }

            public void setUser(User user) {
                this.user = user;
            }

            public int getTransferStatus() {
                return transferStatus;
            }

            public void setTransferStatus(int transferStatus) {
                this.transferStatus = transferStatus;
            }

            @Override
            public String toString() {
                return "Invest{" +
                        "bid=" + bid +
                        '}';
            }

            public static class User{
                private String name;

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class Bid{

                //概要信息
                private int status;
                private int period;
                private int periodUnit;
                private int loanSchedule;
                private double amount;
                private double minInvestAmount;
                private double hasInvestedAmount;



                //基本信息
                private String title;
                private String agencyName;
                private double apr;
                private double discount;
                private Repayment repayment;

                //借款人信息
                private User user;

                //公司名称
                private String companyName;
                private String setupTime;
                private String companyLegal;
                private String registerCapital;
                private String cooperation;

                private int productId;
                //借款描述
                private String Description;

                //房产信息
                private String location;
                private String buildArea;
                private String assessmentPrice;
                //风控信息
                private String riskInfo;

                public int getProductId() {
                    return productId;
                }

                public void setProductId(int productId) {
                    this.productId = productId;
                }

                public String getCompanyName() {
                    return companyName;
                }

                public void setCompanyName(String companyName) {
                    this.companyName = companyName;
                }

                public String getSetupTime() {
                    return setupTime;
                }

                public void setSetupTime(String setupTime) {
                    this.setupTime = setupTime;
                }

                public String getCompanyLegal() {
                    return companyLegal;
                }

                public void setCompanyLegal(String companyLegal) {
                    this.companyLegal = companyLegal;
                }

                public String getRegisterCapital() {
                    return registerCapital;
                }

                public void setRegisterCapital(String registerCapital) {
                    this.registerCapital = registerCapital;
                }

                public String getCooperation() {
                    return cooperation;
                }

                public void setCooperation(String cooperation) {
                    this.cooperation = cooperation;
                }

                public String getDescription() {
                    return Description;
                }

                public void setDescription(String description) {
                    Description = description;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public int getPeriod() {
                    return period;
                }

                public void setPeriod(int period) {
                    this.period = period;
                }

                public int getPeriodUnit() {
                    return periodUnit;
                }

                public void setPeriodUnit(int periodUnit) {
                    this.periodUnit = periodUnit;
                }

                public int getLoanSchedule() {
                    return loanSchedule;
                }

                public void setLoanSchedule(int loanSchedule) {
                    this.loanSchedule = loanSchedule;
                }

                public double getAmount() {
                    return amount;
                }

                public void setAmount(double amount) {
                    this.amount = amount;
                }

                public double getMinInvestAmount() {
                    return minInvestAmount;
                }

                public void setMinInvestAmount(double minInvestAmount) {
                    this.minInvestAmount = minInvestAmount;
                }

                public double getHasInvestedAmount() {
                    return hasInvestedAmount;
                }

                public void setHasInvestedAmount(double hasInvestedAmount) {
                    this.hasInvestedAmount = hasInvestedAmount;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getAgencyName() {
                    return agencyName;
                }

                public void setAgencyName(String agencyName) {
                    this.agencyName = agencyName;
                }

                public double getApr() {
                    return apr;
                }

                public void setApr(double apr) {
                    this.apr = apr;
                }

                public double getDiscount() {
                    return discount;
                }

                public void setDiscount(double discount) {
                    this.discount = discount;
                }

                public Repayment getRepayment() {
                    return repayment;
                }

                public void setRepayment(Repayment repayment) {
                    this.repayment = repayment;
                }

                public User getUser() {
                    return user;
                }

                public void setUser(User user) {
                    this.user = user;
                }

                public String getLocation() {
                    return location;
                }

                public void setLocation(String location) {
                    this.location = location;
                }

                public String getBuildArea() {
                    return buildArea;
                }

                public void setBuildArea(String buildArea) {
                    this.buildArea = buildArea;
                }

                public String getAssessmentPrice() {
                    return assessmentPrice;
                }

                public void setAssessmentPrice(String assessmentPrice) {
                    this.assessmentPrice = assessmentPrice;
                }

                public String getRiskInfo() {
                    return riskInfo;
                }

                public void setRiskInfo(String riskInfo) {
                    this.riskInfo = riskInfo;
                }

                @Override
                public String toString() {
                    return "Bid{" +
                            "status=" + status +
                            ", period=" + period +
                            ", periodUnit=" + periodUnit +
                            ", loanSchedule=" + loanSchedule +
                            ", amount=" + amount +
                            ", minInvestAmount=" + minInvestAmount +
                            ", hasInvestedAmount=" + hasInvestedAmount +
                            ", title='" + title + '\'' +
                            ", agencyName='" + agencyName + '\'' +
                            ", apr=" + apr +
                            ", discount=" + discount +
                            ", repayment=" + repayment +
                            ", user=" + user +
                            ", location='" + location + '\'' +
                            ", buildArea='" + buildArea + '\'' +
                            ", assessmentPrice='" + assessmentPrice + '\'' +
                            ", riskInfo='" + riskInfo + '\'' +
                            '}';
                }

                public static class Repayment{
                    private long id;
                    private String name;
                    private boolean isUse;

                    public long getId() {
                        return id;
                    }

                    public void setId(long id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public boolean isUse() {
                        return isUse;
                    }

                    public void setIsUse(boolean isUse) {
                        this.isUse = isUse;
                    }

                    @Override
                    public String toString() {
                        return "Repayment{" +
                                "id=" + id +
                                ", name='" + name + '\'' +
                                ", isUse=" + isUse +
                                '}';
                    }
                }

                public static class User{
                    private String realityName;
                    private String idNumber;
                    private String name;
                    private String sex;
                    private int age;
                    private String maritalName;
                    private String address;

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public String getRealityName() {
                        return realityName;
                    }

                    public void setRealityName(String realityName) {
                        this.realityName = realityName;
                    }

                    public String getIdNumber() {
                        return idNumber;
                    }

                    public void setIdNumber(String idNumber) {
                        this.idNumber = idNumber;
                    }

                    public String getSex() {
                        return sex;
                    }

                    public void setSex(String sex) {
                        this.sex = sex;
                    }

                    public int getAge() {
                        return age;
                    }

                    public void setAge(int age) {
                        this.age = age;
                    }

                    public String getMaritalName() {
                        return maritalName;
                    }

                    public void setMaritalName(String maritalName) {
                        this.maritalName = maritalName;
                    }

                    public String getAddress() {
                        return address;
                    }

                    public void setAddress(String address) {
                        this.address = address;
                    }

                    @Override
                    public String toString() {
                        return "User{" +
                                "realityName='" + realityName + '\'' +
                                ", idNumber='" + idNumber + '\'' +
                                ", sex='" + sex + '\'' +
                                ", age=" + age +
                                ", maritalName='" + maritalName + '\'' +
                                ", address='" + address + '\'' +
                                '}';
                    }
                }
            }
        }
    }
    public static class Invest{
        private long id;
        private long investId;
        private double amount;
        private int transfer_status;


        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public long getInvestId() {
            return investId;
        }

        public void setInvestId(long investId) {
            this.investId = investId;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public int getTransfer_status() {
            return transfer_status;
        }

        public void setTransfer_status(int transfer_status) {
            this.transfer_status = transfer_status;
        }

        @Override
        public String toString() {
            return "Invest{" +
                    "investId=" + investId +
                    "Id=" + id +
                    '}';
        }
    }
}
